//
//  companyCell.m
//  Ten
//
//  Created by anfuer on 2018/8/21.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "companyCell.h"
#import "UIButton+WebCache.h"
@implementation companyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}
+ (instancetype)CellWithTableView:(UITableView *)tableView
{
    static NSString *reuseId = @"companyCell";
    companyCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseId];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"companyCell" owner:nil options:nil] lastObject];
        
    }

    return cell;
 
}
-(void)Cellinit:(NSDictionary*)dic
{
    _lb1.text=WXGStr(dic[@"name"]);
    [[_imgBtno imageView]setContentMode:UIViewContentModeScaleAspectFit];
    [_imgBtno sd_setImageWithURL:[dic[@"logo"] formatUrl] forState:UIControlStateNormal placeholderImage:WXGImage(@"zhanwei")];
    if ([[dic allKeys]containsObject:@"address"]) {
         _lb2.text=[NSString stringWithFormat:@"%@|公司规模%@人",dic[@"address"],dic[@"company_size"]];
    }else
    {
        _lb2.hidden=YES;
    }
   
}
@end
